package com.gy.event;

import com.gy.componit.SimpleBullet;
import com.gy.game.Game;
import lombok.AllArgsConstructor;

/**
 * 普通子弹消失事件
 * @author Dsy
 * @create 2022-02-05  0:29
 */
@AllArgsConstructor
public class SimpleBulletDisappearEvent implements GameEvent{

    private SimpleBullet bullet;

    @Override
    public void invoke(Game game) {
        game.removeComponent(bullet, false);
    }

}
